xen/arm: Add additional reference to owner domain when the owner is allocated
authorPenny Zheng <Penny.Zheng@arm.com>
Thu, 8 Sep 2022 13:55:09 +0000 (21:55 +0800)
committerStefano Stabellini <stefano.stabellini@amd.com>
Fri, 9 Sep 2022 19:58:00 +0000 (12:58 -0700)
commit041957bad382ba0a393164e8530aa66eacbbb8a3
tree5c472bcb67c1ac8b97a044fd373e5b6f09d0817a
parent5951b856d8d0af57212b54f2afbb404b7579bd27
xen/arm: Add additional reference to owner domain when the owner is allocated

Borrower domain will fail to get a page ref using the owner domain
during allocation, when the owner is created after borrower.

So here, we decide to get and add the right amount of reference, which
is the number of borrowers, when the owner is allocated.

Signed-off-by: Penny Zheng <penny.zheng@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/domain_build.c